/* 表情选择器下拉样式 */
.emoji-picker-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 320px;
    max-height: 300px;
    overflow: hidden;
    z-index: 1000;
    animation: slideDown 0.3s ease;
    margin-bottom: 8px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emoji-picker-tabs {
    display: flex;
    padding: 12px 16px 0;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    overflow-x: auto;
}

.tab-btn {
    padding: 6px 10px;
    border: none;
    background: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-right: 8px;
}

.tab-btn:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.emoji-picker-content {
    padding: 12px 16px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

.emoji-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.emoji-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.1);
}

.emoji-btn:active {
    transform: scale(0.95);
}

/* 滚动条样式 */
.emoji-picker-content::-webkit-scrollbar {
    width: 4px;
}

.emoji-picker-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.emoji-picker-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.emoji-picker-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .emoji-picker-dropdown {
        width: 280px;
        max-height: 250px;
    }

    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .emoji-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}